Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce memory consumption using lightweight references #1370

Merged
merged 23 commits into from
Nov 10, 2024
Merged

Conversation

wlandau
Copy link
Member

@wlandau wlandau commented Nov 10, 2024

Prework

Related GitHub issues and pull requests

Summary

This PR reduces the memory consumption of targets when memory is "transient" by storing dynamic branches as compact references where possible. Testing the pipeline at #1368 (comment) with tar_option_set(memory = "transient") reduced max memory down to 476 MB. Using crew it went up to 668 MB, but inspecting with lobstr revealed that the pipeline object itself consumed less than 100 MB, and the whole R session was only around 200 MB or so, which is a huge improvement.

@wlandau wlandau self-assigned this Nov 10, 2024
@wlandau wlandau merged commit 5439145 into main Nov 10, 2024
13 checks passed
@wlandau wlandau deleted the 1364-ref3 branch November 10, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant